Skip to content

Fix codebase audit issues: tenant filtering, orphaned migrations, CLI parity#7

Merged
DanialBeg merged 1 commit intomainfrom
fix/codebase-audit-fixes
Mar 17, 2026
Merged

Fix codebase audit issues: tenant filtering, orphaned migrations, CLI parity#7
DanialBeg merged 1 commit intomainfrom
fix/codebase-audit-fixes

Conversation

@DanialBeg
Copy link
Contributor

Summary

  • Add tenant_id filtering to QueryCostTimeseries interface and both SQLite/Postgres implementations
  • Add --tenant flag and Postgres driver support to CLI costs command
  • Pass tenant parameter through dashboard summary and timeseries handlers
  • Remove 4 orphaned root-level migration files (only sqlite/ and postgres/ subdirectories are embedded via go:embed)
  • Update all test stubs/mocks for new QueryCostTimeseries signature
  • Add .gitignore entry for built binary

Test plan

  • All existing tests pass (go test ./...)
  • Pre-commit hooks pass (fmt, vet, lint, test)
  • New dashboard handler tests verify tenant filtering on costs, summary, and timeseries endpoints

… parity

- Add tenant_id filtering to QueryCostTimeseries interface and both
  SQLite/Postgres implementations
- Add --tenant flag and Postgres driver support to CLI costs command
- Pass tenant parameter through dashboard summary/timeseries handlers
- Remove orphaned root-level migration files (only sqlite/ and postgres/
  subdirectories are embedded)
- Update all test stubs/mocks for new QueryCostTimeseries signature
- Add .gitignore entry for built binary
@DanialBeg DanialBeg self-assigned this Mar 17, 2026
@DanialBeg DanialBeg merged commit f60f43a into main Mar 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant